Class symantec.itools.db.beans.brl.derivation.DerivationHelper
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.brl.derivation.DerivationHelper

Object
   |
   +----symantec.itools.db.beans.brl.derivation.DerivationHelper

public class DerivationHelper
extends Object
Helper class used by all derivation formulas

Version:
1.0 07/23/98
Author:
Puru Balakrishnan

Variable Index

 o EXCPTITLE
 o logWinHelper

Constructor Index

 o symantec.itools.db.beans.brl.derivation.DerivationHelper()
Default constructor

Method Index

 o calculate(ComputeRow, int, int)
Method which actually does the calculation for different operators
 o convertNumberToDesiredType(Object, int, int)
 o convertRow(ComputeRow)
 o getPromotedDataType(Vector)
 o performCalculation(Vector, int, int)
 o performCalculationForDouble(Vector, int)
 o performCalculationForLong(Vector, int)
 o promoteObjectsToType(Vector, int)

Variables

 o EXCPTITLE
protected static java.lang.String EXCPTITLE
 o logWinHelper
protected symantec.itools.db.beans.util.LogWindowHelper logWinHelper

Constructors

 o DerivationHelper
public DerivationHelper()
Default constructor

Methods

 o calculate
public java.lang.Object calculate(ComputeRow inputRow,
                                  int outputDataType,
                                  int operatorType)
Method which actually does the calculation for different operators

Parameters:
ComputeRow - row containing all inputs
int - specifying type of change performed
int - specifying the desired output data type
int - specifying the type of operator
Returns:
Object after performing the specified operation
 o convertNumberToDesiredType
protected java.lang.Object convertNumberToDesiredType(Object source,
                                                      int promotedType,
                                                      int type)
 o convertRow
protected java.util.Vector convertRow(ComputeRow inputRow)
 o getPromotedDataType
protected int getPromotedDataType(Vector vObjs)
 o performCalculation
protected java.lang.Object performCalculation(Vector vObjValues,
                                              int promotedType,
                                              int operatorType)
 o performCalculationForDouble
protected java.lang.Object performCalculationForDouble(Vector vObjValues,
                                                       int operatorType)
 o performCalculationForLong
protected java.lang.Object performCalculationForLong(Vector vObjValues,
                                                     int operatorType)
 o promoteObjectsToType
protected java.util.Vector promoteObjectsToType(Vector orig,
                                                int type)

All Packages  Class Hierarchy  This Package  Previous  Next  Index